﻿using Kaiser.Infrastructure.Controllers;
using Kaiser.Models;
using Kaiser.Modules.Cubic.Services;
using Kaiser.Modules.Cubic.ViewModel;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;

namespace Kaiser.Modules.Cubic.Controllers
{
    public class MessageManageController : KaiserBaseController
    {
        #region 变量和属性
        private readonly IMessageService _MessageService;

        public MessageManageController(IMessageService _messageService)
        {
            this._MessageService = _messageService;
        }
        #endregion
        public ActionResult MessageList()
        {
            return View();
        }


        [HttpPost]
        public ActionResult MessageList(MessageSearch search, PagingInfo pageinfo, FormCollection form)
        {
            var result = _MessageService.Search(search, pageinfo);

            return Json(result);
        }
    }
}
